#define malloc_zs(ptr, type)	ptr = (type*)malloc(sizeof(type)); memset((void*)ptr, (char)0, sizeof(type))

#define n_malloc_zs(ptr, type)	type *ptr; malloc_zs(ptr, type)

#define new(t)			(t*)malloc(sizeof(t))

#define free_s(ptr)		if(ptr!=NULL) { free(ptr); ptr=NULL; }
